package ah.szxy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("order-service")
public interface OrderFeignService {

    @GetMapping("/createOrder/{userId}/{productNo}/{count}")
    public ResponseEntity createOrder(
            @PathVariable("userId") String userId,
            @PathVariable("productNo") String productNo,
            @PathVariable("count") int count);
}
